#include "point.h"

point::point(int x, int y)
{
	m_x = x;
	m_y = y;
}

ostream& operator<<(ostream &output,point p)
{
	output << "(" << p.m_x << "," << p.m_y << ")" ;
	return output;
}

const point& point::operator =(const point &right)
{
	if(this != &right)
	{
		m_x = right.m_x;
		m_y = right.m_y;
	}
	return *this;
}
bool point::operator==(const point &right) const
{
	if(m_x != right.m_x || m_y != right.m_y)
		return false;

	return true;
}